package com.xiaogao.serviceOrder.config;

import com.baomidou.mybatisplus.core.injector.ISqlInjector;
import com.baomidou.mybatisplus.extension.injector.LogicSqlInjector;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @author 小高
 * @createtime 2021-07-05-20:59
 * @description
 */
@Configuration
@MapperScan(basePackages = {"com.xiaogao.serviceOrder.mapper"})
@ComponentScan(basePackages = "com.xiaogao")
public class OrderConfig {

    /**
     * 逻辑删除插件
     */
    @Bean
    public ISqlInjector sqlInjector() {
        return new LogicSqlInjector();
    }
}
